package cn.fanyamin.jms;

import javax.jms.Destination;

/**
 * The Class AbstractMessageSender.
 * 
 * @author walter
 */
public abstract class AbstractMessageSender {

    /** The connection url. */
    protected String connectionUrl;

    /** The destination. */
    protected Destination destination;

    /** The user name. */
    protected String userName;

    /** The password. */
    protected String password;

    /**
     * Gets the user name.
     * 
     * @return the user name
     */
    public String getUserName() {
        return userName;
    }

    /**
     * Sets the user name.
     * 
     * @param userName
     *            the new user name
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * Gets the password.
     * 
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * Sets the password.
     * 
     * @param password
     *            the new password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * Gets the connection url.
     * 
     * @return the connection url
     */
    public String getConnectionUrl() {
        return connectionUrl;
    }

    /**
     * Sets the connection url.
     * 
     * @param connectionUrl
     *            the new connection url
     */
    public void setConnectionUrl(String connectionUrl) {
        this.connectionUrl = connectionUrl;
    }

    /**
     * Gets the destination.
     * 
     * @return the destination
     */
    public Destination getDestination() {
        return destination;
    }

    /**
     * Sets the destination.
     * 
     * @param destination
     *            the new destination
     */
    public void setDestination(Destination destination) {
        this.destination = destination;
    }

}
